CFILE  =      	daemontools.c \
		clientinfo.dsc.c \
		memberlist.dsc.c \
		message.dsc.c \
		tkevent.c \
		tkhandler.c \
		tklog.c \
		tkmain.c \
		tknetbusi.c \
		tknetutils.c \
		tkproto.c

HFILE  = 	daemontools.h  \
		clientinfo.dsc.h \
		memberlist.dsc.h \
		message.dsc.h \
		tkconstants.h \
		tkerror.h \
		tkevent.h \
		tkhandler.h \
		tklist.h \
		tklog.h \
		tkmain.h \
		tknetbusi.h \
		tknetutils.h \
		tkproto.h

IFLAGS = -I. -I$(HOME)/include/fasterjson/
LFLAGS = -L. -L$(HOME)/lib/ -lfasterjson
CC = gcc -g
.SUFFIXES:.c
.c.o    :
		$(CC) $(CFLAGS) -c $< $(IFLAGS)

c_FILE_o = $(CFILE:.c=.o)

all: $(c_FILE_o) 
	gcc -o minitalk $(c_FILE_o) -L. -L$(LFLAGS) -I. -I$(IFLAGS)
clean:
	rm -rf *.o minitalk
install:
	echo "install"
	
